package com.retirement.csd.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.retirement.common.annotation.Excel;
import com.retirement.common.core.domain.BaseEntity;

/**
 * 服务订单对象 ods_order
 *
 * @author ruoyi
 * @date 2024-03-13
 */
public class OdsOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约订单主键 */
    private Long id;

    /** 部门主键 */
    @Excel(name = "部门主键")
    private Long deptId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 联系人 */
    @Excel(name = "联系人")
    private String linkName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String linkTel;

    /** 上门服务地址 */
    @Excel(name = "上门服务地址")
    private String address;

    /** 上门服务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上门服务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serverTime;

    /** 下单人user_id */
    @Excel(name = "下单人user_id")
    private Long ordererId;

    @Excel(name = "下单人user_id")
    private String ordererName;

    /** 接单人user_id */
    @Excel(name = "接单人user_id")
    private Long takerId;
    private String takerName;

    /** 订单状态（0=待接单，3=已接单，3=已完成） */
    @Excel(name = "订单状态", readConverterExp = "0==待接单，3=已接单，3=已完成")
    private String status;

    /** 服务类型（1=预约服务，2=维修服务） */
    @Excel(name = "服务类型", readConverterExp = "1==预约服务，2=维修服务")
    private String type;

    /** 服务详情 */
    @Excel(name = "服务详情")
    private String content;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setOrderNum(String orderNum)
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum()
    {
        return orderNum;
    }
    public void setLinkName(String linkName)
    {
        this.linkName = linkName;
    }

    public String getLinkName()
    {
        return linkName;
    }
    public void setLinkTel(String linkTel)
    {
        this.linkTel = linkTel;
    }

    public String getLinkTel()
    {
        return linkTel;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setServerTime(Date serverTime)
    {
        this.serverTime = serverTime;
    }

    public Date getServerTime()
    {
        return serverTime;
    }
    public void setOrdererId(Long ordererId)
    {
        this.ordererId = ordererId;
    }

    public Long getOrdererId()
    {
        return ordererId;
    }
    public void setTakerId(Long takerId)
    {
        this.takerId = takerId;
    }

    public Long getTakerId()
    {
        return takerId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public String getOrdererName() {
        return ordererName;
    }

    public void setOrdererName(String ordererName) {
        this.ordererName = ordererName;
    }

    public String getTakerName() {
        return takerName;
    }

    public void setTakerName(String takerName) {
        this.takerName = takerName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("orderNum", getOrderNum())
            .append("linkName", getLinkName())
            .append("linkTel", getLinkTel())
            .append("address", getAddress())
            .append("serverTime", getServerTime())
            .append("ordererId", getOrdererId())
            .append("takerId", getTakerId())
            .append("status", getStatus())
            .append("type", getType())
            .append("content", getContent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
